<template>
  <div style="padding: 10px">
    <div style="display: flex; margin-bottom: 10px">
      <span>自定义小数位数:</span>
      <d-input v-model="decimal" style="flex: 1"></d-input>
    </div>
    <d-input v-model="value" :format="{ decimal: decimal }"></d-input>
    <p>原始value值：{{ value }}</p>
  </div>
</template>
<script setup lang="ts">
  import { ref } from 'vue'
  const value = ref(10000)
  const decimal = ref(2)
</script>
